package us.wili.dev.client.model.rsp;

import io.swagger.annotations.ApiModelProperty;
import us.wili.dev.model.entity.Company;
import us.wili.dev.model.entity.Goods;

import java.math.BigDecimal;

public class ShowClothRsp {
    @ApiModelProperty(value="商品id")
    private Long goodsId;

    @ApiModelProperty(value="商品名字")
    private String goods_name;

    @ApiModelProperty(value="商品图片")
    private String goods_pic;

    @ApiModelProperty(value="商品价格")
    private BigDecimal goods_price;

    public static ShowClothRsp toShowCloth(Goods goods){
        ShowClothRsp rsp =new ShowClothRsp();
        rsp.setGoodsId(goods.getId());
        rsp.setGoods_name(goods.getGoodsName());
        rsp.setGoods_pic(goods.getGoodsPic());
        rsp.setGoods_price(goods.getGoodsPrice());
        return rsp;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_pic() {
        return goods_pic;
    }

    public void setGoods_pic(String goods_pic) {
        this.goods_pic = goods_pic;
    }

    public BigDecimal getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(BigDecimal goods_price) {
        this.goods_price = goods_price;
    }
}
